package org.jl.demo.authority.model.po;

import lombok.Data;
import jakarta.persistence.*;

/**
 * 按钮Po
 */
@Data
@Entity
@Table(name = "z_button", indexes = {
        @Index(name = "idx_button_code", columnList = "button_code"),
        @Index(name = "idx_button_name", columnList = "button_name")
})
public class Button {
    /**
     * 按钮ID
     */
    @Id
    @Column(name = "id", nullable = false, unique = true)
    private Integer id;
    /**
     * 按钮编码
     */
    @Column(name = "button_code", nullable = false, length = 8)
    private String buttonCode;
    /**
     * 按钮名称
     */
    @Column(name = "button_name", nullable = false, length = 32)
    private String buttonName;
}